package com.sc.rest.service.impl;

import com.sc.common.pojo.CommonResult;
import com.sc.rest.component.JedisClient;
import com.sc.rest.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * Created by sc on 2017/10/23.
 */
@Service
public class ManagerServiceImpl implements ManagerService {
    @Autowired
    private JedisClient jedisClient;
    @Value("${REDIS_CONTENT_KEY}")
    private String REDIS_CONTENT_KEY;
    @Override
    public CommonResult syncContent(Long id) {
        Long res = jedisClient.hdel(REDIS_CONTENT_KEY,id.toString());
        return CommonResult.ok();
    }
}
